package com.bwie.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.pojo.Shop;
import com.bwie.mapper.ShopMapper;
import com.bwie.service.ShopService;
@Service
public class ShopServiceImpl extends ServiceImpl<ShopMapper, Shop> implements ShopService{

    @Autowired
    ShopMapper shopMapper;
    @Autowired
    StringRedisTemplate redisTemplate;
    @Override
    public R getShopList(PageInfoVo pageInfoVo) {
        Page<Shop> page = new Page<>(pageInfoVo.getPageNum(), pageInfoVo.getPageSize());
       Page<Shop>  shopPAge = shopMapper.getShopList(page,pageInfoVo);
        return R.OK(shopPAge);
    }
}
